home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-07-21 | 2.4 KB | 86 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="4"
- "UIPATH"="Appearance\Desktop\Icons"
- "NAME"="Visible Icons #2"
- "LANGUAGE"="VBScript"
- "VERSION"="1.74"
- "TEXT 1"="Control Panel"
- "TEXT 2"="Printer"
- "TEXT 3"="MSN Versions 1.0, 2.0, 5.x or later"
- "TEXT 4"="MSN Versions 2.5, 2.6 or 2.7"
- "DESCRIPTION 1"="To show an item on the desktop, activate it. To hide it, deactivate it."
- "DESCRIPTION 2"="It might be necessary to activate the desktop and pressing the F5 key in order to see the changes."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
- "COMMENT 2"="Thanks to CptSiskoX [CptSiskoX@FlashMail.Com] for his help!"
-
-
- sPath="HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\"
- sCP="{21EC2020-3AEA-1069-A2DD-08002B30309D}" 'Control Panel
- sPR="{2227A280-3AEA-1069-A2DE-08002B30309D}" 'Printer
- sMSN_1="{88667D10-10F0-11D0-8150-00AA00BF8457}" 'MSN (old?)
- sMSN_2="{00028B00-0000-0000-C000-000000000046}" 'MSN / OSR2
-
-
- 'Doesn't work. Why?????
- 'sIE="{871C5380-42A0-1069-A2EA-08002B30309D}" 'Internet Explorer (new)
- 'sMN="{933E70D9-A6A2-11D0-826B-00AA00512BBF}" 'MSN old (???)
- Sub Plugin_Initialize
- if RegPathExists(sPath & sCP) then SetUIElement 1,true
- if RegPathExists(sPath & sPR) then SetUIElement 2,true
- if RegPathExists(sPath & sMSN_1) then SetUIElement 3,true
- if RegPathExists(sPath & sMSN_2) then SetUIElement 4,true
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sPath & sCP & "\@","",1)
- else
- if RegPathExists(sPath & sCP) then
- Call RegDeletePath(sPath & sCP)
- end if
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sPath & sPR & "\@","",1)
- else
- if RegPathExists(sPath & sPR) then
- Call RegDeletePath(sPath & sPR)
- end if
- end if
-
- b=GetUIElement(3)
- if b=true then
- Call RegWriteValue(sPath & sMSN_1 & "\@","",1)
- else
- if RegPathExists(sPath & sMSN_1) then
- Call RegDeletePath(sPath & sMSN_1)
- end if
- end if
-
- b=GetUIElement(4)
- if b=true then
- Call RegWriteValue(sPath & sMSN_2 & "\@","",1)
- else
- if RegPathExists(sPath & sMSN_2) then
- Call RegDeletePath(sPath & sMSN_2)
- end if
- end if
-
- Call Logoff
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-